#{extends 'main.html' /} #{set title:'Home' /}


<div id=main>

	<br /> <a class="buttonS purple" href="@{AdvancedSearch.searchHome()}">Back
		to advanced search </a><br />


	<form
		action="@{AdvancedSearch.searchForRelationsSourceDestinationTag()}"
		method="GET">
		<br />
		<tr>
			<td><b>Search for Relations by source and destination</b>
			<hr></hr>
			</td>
		</tr>


		<input type="text" id="search1" name="search1" /> <span
			style="color: #c00" class="error">#{error 'search1' /}</span>


		<div class="content">
			<div class="row">
				<div class="left">RelationName</div>
				<div class="right">
					#{if tagRelationList.size() > 0 }
					 #{select 'relationName', value:1, id:'select1'}
					  #{option None}None#{/option}
					 #{list items:0..tagRelationList.size()-1, as:'i'} 
					#{option tagRelationList.get(i).relationName}${tagRelationList.get(i).relationName}#{/option}
					#{/list} #{/select}
					 #{/if} 
					#{else} <b><u>There are	currently no Relations</u></b><br />
					<br />
					 #{/else}

				</div>
			</div>
		</div>


		<input type="text" id="search3" name="search3" /> <span
			style="color: #c00" class="error">#{error 'search3' /}</span> <input
			type="submit" id="submit" name="search" value="search" /> 
			#{if flash.error}
		<p style="color: #c00">${flash.error}</p>
		#{/if}

	</form>

</div>